package com.bw.z.mvp.di;

import com.bw.z.mvp.contract.NewsContract;

import dagger.Module;
import dagger.Provides;

@Module
public class NewsModules {
    private NewsContract.NewView view;

    public NewsModules(NewsContract.NewView view) {
        this.view = view;
    }

    @Provides
    public NewsContract.NewView provideView() {
        return view;
    }

    @Provides
    public NewsContract.NewsModel provideModel(com.bw.z.mvp.model.NewsModel model) {
        return model;
    }
}
